{% extends 'base.html' %}

{% block title %}新增员工{% endblock %}

{% block head %}
    <link rel="stylesheet" href="{{ url_for('static', filename='css/newnum.css') }}">
{% endblock %}

{% block index_main %}
    <div class="main">
        <div class="indexmain">
            <h3 class="page-title">新增员工信息</h3>
            <form action="" method="post">
                <div class="form-container">
                    <div class="form-group">
                        <input type="text" placeholder="请输入员工编号" name="staff_id" class="form-control">
                    </div>
                    <div class="form-group">
                        <input type="text" placeholder="请输入员工姓名" name="staff_name" class="form-control">
                    </div>
                    <div class="form-group" aria-placeholder="请选择员工部门">
                        <select name="depart_select" id="depart_select" class="form-control">
                            <option value="" selected>请选择员工部门</option>
                            {% for depart in departs %}
                                <option value="{{ depart.id }}">{{ depart.depart_name }}</option>
                            {% endfor %}
                        </select>
                    </div>
                    <div class="form-group" aria-placeholder="请选择员工职务">
                        <select name="duty_select" id="duty_select" class="form-control">
                            <option value="" selected>请选择员工职务</option>
                            {% for duty in dutys %}
                                <option value="{{ duty.id }}">{{ duty.duty_name }}</option>
                            {% endfor %}
                        </select>
                    </div>
                    <div class="form-group">
                        <button class="btn btn-primary btn-block">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
{% endblock %}